package com.gs.wzweather.dao;

import com.gs.wzweather.dao.mapper.ForcastReviseMapper;
import com.gs.wzweather.entity.ForcastRevise;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * Created with IntelliJ IDEA.
 * User: Legolas
 * Date: 2017/11/3 0003
 */
@Repository
public class ForcastReviseDao {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    ForcastReviseMapper mapper;

    public ForcastRevise queryReviseThree(){
        try {
            return mapper.queryReviseThree();
        } catch (Exception e) {
            logger.info("queryReviseThree->{}",e.getMessage());
        }
        return null;
    }

    public ForcastRevise queryReviseweek(){
        try {
            return   mapper.queryReviseWeek();
        } catch (Exception e) {
            logger.info("queryReviseweek->{}",e.getMessage());
        }
        return null;
    }

}
